package com.jd.cmdb.tsc.dao;

import com.jd.cmdb.tsc.entity.Task;

import java.util.List;
import java.util.Map;

/**
 * Created by tianzhengguo on 2016/1/11.
 */
public interface TaskDao {

    List<Task> selAllTasks() throws Exception;

    List<Task> selAllTasks(short[] states) throws Exception;

    List<Task> selTasksByState(short state) throws Exception;

    int countAllTasks() throws Exception;

    Task selTask(String taskId) throws Exception;

    int updateTask(String taskId) throws Exception;

    int updateTask(Task task) throws Exception;

    int updateTaskByStates(Map<String, Object> task) throws Exception;

    int addTask(Task task) throws Exception;

    int deleteTask(String taskId) throws Exception;
}
